package com.thon.dao.user;

import java.util.List;

import org.apache.taglibs.standard.lang.jstl.test.beans.PublicBean1;

import com.thon.dao.util.BaseDao;
import com.thon.dao.util.Page;
import com.thon.entity.user.Coupon;

/**
 * @author wang
 * @date 2014-6-17
 * @description
 */
public interface CouponDao extends BaseDao<Coupon> {

	public Page<Coupon> listUnusedCoupon(int uid, Page<Coupon> page);
	
	public Page<Coupon> listUsedCoupon(Page<Coupon>page,int uid);

	public Coupon getCoupon(int id, String no);
	
	public List<Coupon> listAll();
	
	public Page<Coupon> findCouponByStatus(Page<Coupon>page,String status);
	
	public Page<Coupon> findCouponByType(Page<Coupon>page,String type);
	
	public Page<Coupon> findCouponByProject(Page<Coupon>page,int projectId);

	public Page<Coupon> findCouponByStatus(Page<Coupon> page, String value, int id);

	public Page<Coupon> findCouponByType(Page<Coupon> page, String type, int id);

	public Page<Coupon> findCouponByTime(Page<Coupon> page, String overdueDt, int id);

	public Page<Coupon> findCouponByCreateDt(Page<Coupon> page,String createDt, int id);
	
	public Page<Coupon> findCouponPages(Page<Coupon> page);
	
	public Page<Coupon> findCouponByProjectId(Page<Coupon> page,int projectId,int id);
	
	public Page<Coupon> findAllCoupons(Page<Coupon>page,int uid);
	
	public Long countUnusedCoupon(Integer uid);
	
	public Page<Coupon> findAllCoupons(Page<Coupon>page);
	
	public List<Coupon> listByStatus(String status);
	
	public Coupon getCouponByNo(String no);
	
	public Page<Coupon> findCouponByProject(Page<Coupon>page,String by,String value,int ProjectId);
	
	public Page<Coupon> findCouponByValue(Page<Coupon>page,String by,String value);
	
	public Page<Coupon> findCouponByProjectId(Page<Coupon>page,int ProjectId);
}
